package com.zktr.dao;
import java.util.HashMap;
import java.util.List;
import com.zktr.pojo.leftmemu;
import com.zktr.utils.CRUDDAO;
public class leftmemuDao {
  	CRUDDAO<leftmemu> crud = new CRUDDAO<>(leftmemu.class);  
      public List<leftmemu> queryMannergerShow() {
      HashMap<String, Object[]> map = new HashMap<>();
      map.put("select * from leftmemu where memupid =0  ", null);
		return crud.selectAll(map).get(0);
	}
      public List<leftmemu> queryChildShow(int id) {
      HashMap<String, Object[]> map = new HashMap<>();
      map.put("select * from leftmemu where memupid =?  ", new Object[]{id});
		return crud.selectAll(map).get(0);
	}
       public static void main(String[] args) {
		leftmemuDao lDao = new leftmemuDao();
	    System.out.println(lDao.queryChildShow(1));
       }
}
 